using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using BusinessLogicLayer;
using EntityObjectLayer;

/// <summary>
/// Summary description for wsPupilReport
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class wsPupilReport : System.Web.Services.WebService
{
    BLPupilReport pr;
    public wsPupilReport()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public int createReport(BEPupil p)
    {
        return pr.createReport(p);
    }

    //[WebMethod]
    //public BEPupilReport loadReport(string p)
    //{
    //    return pr.loadReport(p);
    //}

    //[WebMethod]
    //public int saveReport(BEPupilReport report, string p)
    //{
    //    return pr.saveReport(report, p);
    //}

    [WebMethod]
    public string Eval(string p, BESummary sumAll)
    {
        return pr.Eval(p,sumAll);
    }

    [WebMethod]
    public BESummary makeYearRecord(string p)
    {
        return pr.makeYearRecord(p);
    }

    [WebMethod]
    public string evalToUpgrade(string p, BESummary sumAll)
    {
        return pr.evalToUpgrade(p,sumAll);
    }

    [WebMethod]
    public DataSet loadClassSummary(string c, string term)
    {
        return pr.loadClassSummary(c,term);
    }

    [WebMethod]
    public DataSet loadPupilSummary(string p, string grade)
    {
        return pr.loadPupilSummary(p,grade);
    }
}

